﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Economo.Services.EntitiesConversion;
using System.Runtime.Serialization;

namespace Economo.Services.BusinessEntities
{
    public class Account
    {
        private Int16 _id;
        private string _description;
        private byte _accountTypeId;
        private byte? _bankId;
        private Int16? _bankAccountId;
        private byte? _creditCardId;


        [MappingSettingsAttribute(true, "Id", MappingSettingsAttribute.MappingType.Simple)]
        public Int16 Id
        {
            get
            {
                return _id;
            }
            set
            {
                _id = value;
            }
        }
        [MappingSettingsAttribute(true, "Description", MappingSettingsAttribute.MappingType.Simple)]
        public string Description
        {
            get
            {
                return _description;
            }
            set
            {
                _description = value;
            }
        }

        [MappingSettingsAttribute(true, "AccountTypeId", MappingSettingsAttribute.MappingType.Simple)]
        public byte AccountTypeId
        {
            get
            {
                return _accountTypeId;
            }
            set
            {
                _accountTypeId = value;
            }
        }

        [MappingSettingsAttribute(false, "BankId", MappingSettingsAttribute.MappingType.Simple)]
        public byte? BankId
        {
            get
            {
                return _bankId;
            }
            set
            {
                _bankId = value;
            }
        }

        [MappingSettingsAttribute(false, "BankAccountId", MappingSettingsAttribute.MappingType.Simple)]
        public Int16? BankAccountId
        {
            get
            {
                return _bankAccountId;
            }
            set
            {
                _bankAccountId = value;
            }
        }

        [MappingSettingsAttribute(false, "CreditCardId", MappingSettingsAttribute.MappingType.Simple)]
        public byte? CreditCardId
        {
            get
            {
                return _creditCardId;
            }
            set
            {
                _creditCardId = value;
            }
        }
    }
}
